package org.idea.eaglemq.client.consumer;

import org.idea.eaglemq.common.enums.ConsumeResultStatus;

/**
 * @author: LunBoWang
 * @description:
 * @date: 2025/5/8 下午7:35
 * @version: 1.0
 */

public class ConsumeResult {
    /**
     * 消费结果
     */
    private int consumeResultStatus;

    public int getConsumeResultStatus() {
        return consumeResultStatus;
    }

    public void setConsumeResultStatus(int consumeResultStatus) {
        this.consumeResultStatus = consumeResultStatus;
    }

    public ConsumeResult(int consumeResultStatus) {
        this.consumeResultStatus = consumeResultStatus;
    }

    public static ConsumeResult CONSUME_SUCCESS(){
        return new ConsumeResult(ConsumeResultStatus.CONSUME_SUCCESS.getCode());
    }

    public static ConsumeResult CONSUME_LATER(){
        return new ConsumeResult(ConsumeResultStatus.CONSUME_LATER.getCode());
    }
}
